import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import less from 'less'
import VueCookies from 'vue-cookies'



import '@/filters' // filters
import '@/utils/directives' // directives
import '@/utils/permission' // directives
import Utils from '@/utils/utils' // utils

// 封装弹窗提示
import Create from './utils/alert';
import Alert from './components/Alert';
Vue.config.productionTip = false
Vue.prototype.$Alert = ((obj) => {//挂载在原型上
    return Create(Alert, obj).show(); //返回组件实例
})

Vue.use(less);
Vue.use(VueCookies);
Vue.prototype.Utils = Utils;
Vue.config.productionTip = false

// import  VConsole  from  'vconsole';
// const vConsole = new VConsole();

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
